package com.smz.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smz.entity.Commodity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommodityDAO extends BaseMapper<Commodity> {

    Commodity selectCommodityById(@Param("id") Integer id);

    List<Commodity> selectAllCommodity();

    //dy

    //通过商品名很多商品
    List<Commodity> selectCommodity(String pName);

    List<Commodity> selectAllCommodityAndType();
}
